package com.bjut.domain;

import java.io.Serializable;

import org.apache.struts.action.ActionForm;
import org.apache.commons.lang.builder.*;
public class TrainRecord extends ActionForm implements Serializable {
	private int trainId;
	private int empId;
	//private int id;
	private int emp_id;
	
	public int getEmp_id() {
		return emp_id;
	}
	public void setEmp_id(int emp_id) {
		this.emp_id = emp_id;
	}
	private String effect="";
	private String mark="";
/*	private Train train;
	private Employee employee;*/
	
	@Override
	public int hashCode() {
		return new HashCodeBuilder().append(this.trainId).append(this.empId).toHashCode();
	}
	@Override
	public boolean equals(Object obj) {
		if(obj==this){
			return true;
		}
		if(!(obj instanceof TrainRecord)){
			return false;
		}
		TrainRecord tr=(TrainRecord)obj;
		return new EqualsBuilder().append(this.trainId, tr.getTrainId()).append(this.empId, tr.empId).isEquals();
	}
	public int getTrainId() {
		return trainId;
	}
	public void setTrainId(int trainId) {
		this.trainId = trainId;
	}
	public int getEmpId() {
		return empId;
	}
	public void setEmpId(int empId) {
		this.empId = empId;
	}
	public String getEffect() {
		return effect;
	}
	public void setEffect(String effect) {
		this.effect = effect;
	}
	public String getMark() {
		return mark;
	}
	public void setMark(String mark) {
		this.mark = mark;
	}
	
	
}
